package com.leiyuee.mybatis.service.impl;

import com.leiyuee.mybatis.dao.IUserMapper;
import com.leiyuee.mybatis.entity.IUser;
import com.leiyuee.mybatis.service.IUserService;
import com.leiyuee.mybatis.util.IdWorker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.common.Mapper;

@Service
public class IUserServiceImpl extends TkMapperServiceImpl<IUser,String> implements IUserService   {

    @Autowired
    private IUserMapper iUserMapper;
    @Override
    public Mapper<IUser> getMapper() {
        return iUserMapper;
    }
    @Override
    public void save(IUser iUser) {
        iUserMapper.insert(iUser);
    }
}
